package com.teamfractal.fracdustry.client.render.renderer;

import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.teamfractal.fracdustry.client.model.VawtModel;
import com.teamfractal.fracdustry.common.blockentity.Generators.FDVawtBlockEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib3.renderers.geo.GeoBlockRenderer;

public class VawtRenderer extends GeoBlockRenderer<FDVawtBlockEntity> {
    public VawtRenderer(BlockEntityRendererProvider.Context rendererDispatcherIn) {
        super(rendererDispatcherIn, new VawtModel());
    }

    @Override
    public RenderType getRenderType(FDVawtBlockEntity animatable, float partialTicks, PoseStack stack,
                                    MultiBufferSource renderTypeBuffer, VertexConsumer vertexBuilder, int packedLightIn,
                                    ResourceLocation textureLocation) {
        return RenderType.entityCutout(getTextureLocation(animatable));
    }
}
